<h1>Listing tables</h1>

<table>
  <tr>
    <th>Panel</th>
    <th>Tablename</th>
    <th>Width</th>
    <th>Height</th>
    <th>Row</th>
    <th>Summary</th>
		<th>x</th>
		<th>y</th>
  </tr>

<% for table in @tables %>
  <tr>
    <td><%=h table.panel_id %></td>
    <td><%=h table.tableName %></td>
    <td><%=h table.width %></td>
    <td><%=h table.height %></td>
    <td><%=h table.row %></td>
    <td><%=h table.summary %></td>
		<td><%=h table.x %></td>
		<td><%=h table.y %></td>
    <td><%= link_to 'Show', table %></td>
    <td><%= link_to 'Edit', edit_table_path(table) %></td>
    <td><%= link_to 'Destroy', table, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New table', new_table_path %>
